home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invisible Universe
/
Invisible Universe (1995)(Voyager)[Mac-PC].iso
/
mac
/
MOVIES
/
MUSIC.DIR
/
00002_Script_2
< prev
next >
Wrap
Text File
|
1995-11-16
|
2KB
|
58 lines
on idle
global gMusicIsPlaying, gQuittingMusic
if gQuittingMusic then exit
if gMusicIsPlaying then
-- set cursor to [12,13]
goMusicGo
else
-- go frame "Start"
-- cursor 220
startMusic
end if
-- pass
end idle
on exitFrame
go to the frame
end exitFrame
on goMusicGo
global gMusicDuration, gMusicIsPlaying
if (the movieTime of sprite 48) < gMusicDuration then
set the movieRate of sprite 48 to 1
else
put false into gMusicIsPlaying
end if
end goMusicGo
on goMusicGoOLD
global gMusicIsPlaying, gMusicCastNumber, gMusicDuration
global gThePicts, gLastPictSwitch, gCurrentPictNum, gRandomGuy
if gRandomGuy = "" then put (360+random(240)) into gRandomGuy
if (the timer > gLastPictSwitch+gRandomGuy) then
put empty into gRandomGuy
go to (the frame) +1--where the palette dissolve out is
--unloadCast (the number of cast (getAt(gThePicts, gCurrentPictNum)))
put gCurrentPictNum+1 into gCurrentPictNum
if gCurrentPictNum > count(gThePicts) then
put 1 into gCurrentPictNum
end if
--preloadCast (the number of cast (getAt(gThePicts, gCurrentPictNum)))
put label(getAt(gThePicts, gCurrentPictNum)) into it
set the movieRate of sprite 48 to 1
go frame it -- where the palette change occurs
go frame it+1
set the movieRate of sprite 48 to 1
put the timer into gLastPictSwitch
else
if (the movieTime of sprite 48) < gMusicDuration then
set the movieRate of sprite 48 to 1
else
put false into gMusicIsPlaying
end if
end if
end goMusicGoOLD